import request from "@/utils/request.js"

export const goodsListService = (query) => request.get('/goods',{params:query})
export const addGoodsService = (data) => request.post('/goods',data)
<<<<<<< HEAD
export const updateGoodsService = (data) => request.put(`/goods/${data.goods_id}`,data)
export const deleteGoodsService = (id) => request.delete(`/goods/${id}`)
=======
export const updateGoodsService = (id,data) => request.put(`/goods/${id}`,data)
export const deleteGoodsService = (id) => request.delete(`/goods/${id}`)
>>>>>>> 6ce0f859b4e893dc690ff84a1db458a15cf0aabd
